package org.smr.ministore.micro.client;

import java.util.List;

import org.blade.utils.Pager;
import org.smr.ministore.entities.GoodsSpecificationItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("gateway.GoodsSpecificationItem")
public interface FeignGoodsSpecificationItemMicroServiceClient {

    @RequestMapping(method = RequestMethod.PUT, value = "/GoodsSpecificationItem/batchSave")
    int batchSave(@RequestBody List< GoodsSpecificationItem> entities);

    @RequestMapping(method = RequestMethod.POST, value = "/GoodsSpecificationItem/batchModify")
    int batchModify(@RequestBody List< GoodsSpecificationItem> entities);

    @RequestMapping(method = RequestMethod.PUT, value = "/GoodsSpecificationItem/save")
    public int save(@RequestBody GoodsSpecificationItem entity) ;

    @RequestMapping(method = RequestMethod.PATCH, value = "/GoodsSpecificationItem/updateById")
    public int updateById(@RequestBody GoodsSpecificationItem id);

    @RequestMapping(method = RequestMethod.GET, value = "/GoodsSpecificationItem/queryById/{id}")
    public  GoodsSpecificationItem queryById(@PathVariable("id")Long id);

    @RequestMapping(method = RequestMethod.DELETE, value = "/GoodsSpecificationItem/deleteById/{id}")
    public int deleteById(@PathVariable("id")Long id);

    @RequestMapping(method = RequestMethod.POST, value = "/GoodsSpecificationItem/paginate")
    public Pager<GoodsSpecificationItem> paginate( @RequestBody GoodsSpecificationItem entity, Long pageSize, Long pageNum);

    @ResponseBody
    @RequestMapping(method = RequestMethod.DELETE, value = "/GoodsSpecificationItem/deleteByIdLogical/{id}")
    public int deleteByIdLogical(@PathVariable("id") Long id);
}
